package org.order.controller;


import org.order.bean.OrderBean;
import org.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Autowired
    OrderService orderService;

    @RequestMapping("/insertOrder")
    public void insertOrder() {
        try {
            OrderBean orderBean=new OrderBean();
            orderBean.setOrderName("orderServie8083");
            orderService.insertOrder(orderBean);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
